// /sys/reportUser/list
import request from '@/utils/httpRequest'

// 获取所有标签
// limit
// page
export function getALList(query) {
  console.log('getAllist')
  console.log(query)
  return request({
    url: '/sys/forumComment/list',
    method: 'get',
    params: query
  })
}

// 添加标签
// limit
// page
// /sys/reportUser/info/1
export function addmsg(query) {
  return request({
    url: '/sys/topic/save',
    method: 'post',
    data: request.adornData(query, false)
  })
}

// 修改标签
// limit
// page
export function editMsg(query) {
  return request({
    url: '/sys/article/man/update',
    method: 'post',
    data: request.adornData(query, false)
  })
}

// 删除
// /sys/article/man/delete
export function delMsg(query) {
  return request({
    url: '/sys/forumComment/delete',
    method: 'post',
    data: request.adornData(query, false)
  })
}

// 获取详情
//   /sys/topic/info/{forumId}
export function detailMsg(query) {
  return request({
    url: '/sys/forumComment/info/' + query,
    method: 'get'
  })
}

// 屏蔽
// /sys/forumComment/shie
export function shie(query) {
  return request({
    url: '/sys/forumComment/shie',
    method: 'post',
    data: request.adornData(query, false)
  })
}
